package com.bigshen.demo.annotation.injectioncomponents.a0value;

import com.bigshen.demo.project.entity.Child;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class MyTest {

    @Test
    public void test() {

        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfig.class);

        Child child = (Child) applicationContext.getBean("child");

        System.out.println(child);

    }

}
